//
//  SizeUtil.h
//  sunshine
//
//  Created by Kyo-PC on 16/7/28.
//  Copyright © 2016年 Kyo-PC. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface SizeUtil : NSObject


#define SCREENSIZE [UIScreen mainScreen].bounds.size
#define LSCALE SCREENSIZE.width/320.0

#define kIs_iphone (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
#define kIs_iPhoneX SCREENSIZE.width >=375.0f && SCREENSIZE.height >=812.0f&& kIs_iphone

#define kTabBarHeight (CGFloat)(kIs_iPhoneX?(49.0 + 34.0):(49.0))
//自动计算文本高度
+ (CGSize)sizeWithText:(NSString *)text font:(UIFont *)font maxSize:(CGSize)maxSize;

@end
